package mysgoog.bot;

import mysgoog.MC.MCManager;
import mysgoog.board.*;
import mysgoog.gtp.*;
import mysgoog.util.*;

public class MCBot extends GoBot
{
    private Board board;
    private MCManager mcmanager;

    @Override
    public void setBoard(Board board)
    {
        this.board = board;
    }

    @Override
    public Vertex genMove(Color color)
    {
    	mcmanager = new MCManager(color, this.board);
    	Vertex ret = mcmanager.MCGen();
    	
        if (board.isLegal(color, board.makePos(ret.x, ret.y)))
        {
            return ret;
        }
    	return new Vertex("pass");
    }

}
